# try:
#    num= int(input("请输入一个数字："))
#    try:
#        result=15/num
#        pass
#    except Exception as msg:
#        print("数字num为0")
#        print(msg)
#    pass
# except Exception as msg:
#     print(msg)
# 异常传递
def a():
    print(1/0)
    pass
def b():
    a()
    pass
def c():
    try:
        b()
    except Exception as msg:
        print(msg)
    pass
c()
